package com.ambulance.project.biz.service.impl;

import com.ambulance.framework.task.HdTask;
import com.ambulance.project.biz.entity.Car;
import com.ambulance.project.biz.entity.CarChannel;
import com.ambulance.project.biz.mapper.CarMapper;
import com.ambulance.project.biz.service.CarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 车辆管理表 服务实现类
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Service
public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements CarService {
    @Autowired
    private HdTask hdTask;

    @Override
    public List<CarChannel> getCarChannel(Integer carID) {

        List<CarChannel> channelInfo = hdTask.getCarChannelInfo(carID);
        return channelInfo;
    }
}
